import request from "@/utils/request";

export function getRoomRackList(query) {
  return request({
    url: 'housing/house-info/roomRackList',
    params: query,
    method: 'get'
  })
}

export function getRegionList() {
  return request({
    url: '/housing/region/regionList',
    method: 'get'
  })
}

export function deleteById(houseId) {
  return request({
    url: '/housing/room-info/deleteHouseById/' + houseId,
    method: 'delete',
  })
}

export function updatePublishStatus(data) {
  return request({
    url: 'housing/room-info/updatePublishStatus',
    method: 'put',
    data: data
  })
}

export function apiUpdateRental(data) {
  return request({
    url: 'housing/room-info/updateRental',
    method: 'put',
    data: data
  })
}

export function apiUpdateHouse(data) {
  return request({
    url: 'housing/house-info/updateHouse',
    method: 'put',
    data: data
  })
}

